
package webservices.bizHangYi;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for IO_IDType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="IO_IDType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="Identity"/>
 *     &lt;enumeration value="Military"/>
 *     &lt;enumeration value="Passport"/>
 *     &lt;enumeration value="Driving"/>
 *     &lt;enumeration value="Home"/>
 *     &lt;enumeration value="Other"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "IO_IDType")
@XmlEnum
public enum IOIDType {

    @XmlEnumValue("Identity")
    IDENTITY("Identity"),
    @XmlEnumValue("Military")
    MILITARY("Military"),
    @XmlEnumValue("Passport")
    PASSPORT("Passport"),
    @XmlEnumValue("Driving")
    DRIVING("Driving"),
    @XmlEnumValue("Home")
    HOME("Home"),
    @XmlEnumValue("Other")
    OTHER("Other");
    private final String value;

    IOIDType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static IOIDType fromValue(String v) {
        for (IOIDType c: IOIDType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
